<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
    <h:head>
        <title>Update lunch</title>
    </h:head>
    <h:body>
        <ui:composition template="../../admin/adminTemplate.xhtml">
            
            <ui:define name="title">
                Admin Schema
            </ui:define>
            
            <ui:define name="page">
                <h:form class="form">
                    <p>Redigerar rätt: <h:outputText value="#{listLunch.selectedValue}"/></p>
                    
                    Namn på rätt: <h:inputText value="#{listLunch.lunchName}"/>
                    Beskrivning: <h:inputText value="#{listLunch.lunchDescription}"/>
                    Pris: <h:inputText value="#{listLunch.lunchPrice}"/>
                    
                    <h:commandButton value="Spara" action="#{listLunch.update()}"/>
                    <h:commandButton value="Hem" action="/index"/>
                </h:form>
            </ui:define>
        </ui:composition>
    </h:body>
</html>

